package Animals;
class Dog{
    public String name;
    public String color;
    public int age;
    public void eat(){
        System.out.println(name+" 正在吃饭");
    }
}
public class a {
    public static void main(String[] args) {
        Dog dog1=new Dog();
        dog1.name="小黄";
        dog1.eat();
        Dog dog2=new Dog();
        dog2.name="小黑";
        dog2.eat();
    }
}
